// https://youyi-api.itheima.net/patient/myUser

import type { Me } from '@/types/my';
import { http } from '@/utils/request';

// 用户信息
export const getPatientMyUserAPI = () => http<Me>('/patient/myUser', 'GET');

// 修改用户名
export const getpatientUpdateUserNameAPI = (userName: string) =>
  http<Me>('/patient/update/userName', 'PUT', { userName });

// 修改用户名

export const getpatientMyListAPI = () => http('patient/mylist', 'GET');
